package com.balabala.gym_goods.service;

import com.balabala.goods.pojo.dto.LockStockDTO;
import com.balabala.gym_goods.pojo.entity.Sku;
import com.balabala.result.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 * @author 何涛
 * @date 2023/5/8 0008
 */

public interface SkuService extends IService<Sku> {
    /**
     * 批量锁定库存
     * @param lockStockDTOS
     * @return
     */
    Result batchLockStock(List<LockStockDTO> lockStockDTOS);

    /**
     * 根据订单编号释放库存
     * @param orderSn
     * @return
     */
    Boolean unLockStock(String orderSn);
}
